#ifndef AISERVER_H
#define AISERVER_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
namespace Ui {
class AIServer;
}

class AIServer : public QWidget
{
    Q_OBJECT

public:
    explicit AIServer(QWidget *parent = nullptr);
    ~AIServer();
void sendRequest(const QString &message);

signals:
    void responseReceived(const QString &reply);
private slots:
    void onReplyFinished(QNetworkReply *reply);
private:
    Ui::AIServer *ui;
    QNetworkAccessManager *networkManager;
};

#endif // AISERVER_H
